/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

/* 🔥 SCROLL ACTIVE NAVBAR */
.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* logo */
.navbar .logo {
  font-size: 1.8em;
  font-weight: 700;
  color: #ffffff;
  transition: 0.3s;
}

/* nav links */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 1em;
  color: #ffffff;
  transition: 0.3s ease;
  padding-bottom: 5px;
}

/* underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.35s ease;
}

/* hover glow + underline */
.nav-links a:hover {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 🔥 AFTER SCROLL TEXT COLOR */
.navbar.scrolled .logo {
  color: #0b5ed7;
}

.navbar.scrolled .nav-links a {
  color: #333;
}

.navbar.scrolled .nav-links a:hover {
  color: #0b5ed7;
  text-shadow: 0 0 8px rgba(11, 94, 215, 0.5);
}

.navbar.scrolled .nav-links a::after {
  background: #0b5ed7;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90%;
}

/* ===== ANIMATION ===== */
@keyframes moveUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TEXT */
#hey-text {
  font-size: 3em;
  opacity: 0;
  animation: moveUp 1.2s ease forwards;
}

#Welcome-text {
  font-size: 2.3em;
  opacity: 0;
  animation: moveUp 1.2s ease forwards;
}

#proverb-text {
  font-size: 1em;
  max-width: 725px;
  line-height: 1.6;
  margin: 0 auto;
  opacity: 0;
  animation: moveUp 1.2s ease forwards;
}

/* COLORS */
#Arif {
  color: #38bdf8;
}

#Arnold-name {
  color: #facc15;
}

.hero-content h1,
.hero-content h2,
.hero-content h4 {
  color: #fff;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

/* ===== TYPING TEXT ===== */
#proverb-quote {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.2em;
  color: #93c5fd;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  white-space: normal;
  word-break: break-word;
  min-height: 1.5em;
}

/* cursor blink only */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.typing-active {
  animation: blink 0.8s step-end infinite;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 18px;
  }

  #hey-text {
    font-size: 2.2em;
  }

  #Welcome-text {
    font-size: 1.6em;
  }

  #proverb-text {
    font-size: 0.95em;
  }

  #proverb-quote {
    font-size: 1em;
  }
}
